import Qt 4.7

Rectangle {
    property alias text: textItem.text
    signal buttonPressed()

    width: 150; height: 60
    border.width: 1
    radius: 5
    smooth: true

    gradient: Gradient {
        GradientStop { position: 0.0; color: "darkGray" }
        GradientStop { position: 0.5; color: "black" }
        GradientStop { position: 1.0; color: "darkGray" }
    }

    MouseArea {
            anchors.fill: parent

            onPressed: {
                /*handle.color = "#3952ED"*/
            }

            onReleased: {
                /*handle.color = "#000000"*/
                parent.buttonPressed()
            }
        }

    Text {
        id: textItem
        anchors.centerIn: parent
        anchors.verticalCenterOffset: -5
        font.pointSize: 15
        font.bold: true
        color: "yellow"
    }

}
